@echo off

setlocal

set clsid={7E16D339-03C7-40a9-9A8A-23B4A970823D}
set regbase=HKLM\Software\Classes\CLSID\%clsid%

set keyexist=0
reg query %regbase% /ve > nul 2>&1
if %errorlevel% equ 0 set keyexist=1

set delfail=0
reg delete %regbase% /f > nul 2>&1
if %errorlevel% neq 0 set delfail=1

if %keyexist% equ 1 (
  if %delfail% equ 1 (
    echo Run this batch file as administrator!
    goto end
  )
)

echo DONE!

:end
endlocal
pause